package com.example.orderserver.entities;

import com.example.server_engineer.entities.AbstractDomainEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author Administrator
 */ //根据不同的角色选择不同的菜单
// 角色role，name id parentid 二级菜单，
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "orderdetailet")
public class OrderDetailet extends AbstractDomainEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Integer id;

    @Schema(description = "所属食品编号")
    private  Integer foodId;

    @Schema(description = "所属订单编号")
    private Integer orderId;

    @Schema(description = "数量")
    private int quantity;

}
